﻿using System.Reflection;
using System.Windows.Forms;


namespace DVBViMon
{
    public partial class AboutDialog : Form
    {
        private const string Version = "Version=";

        public AboutDialog()
        {
            InitializeComponent();

            this.lVersion.Text = "v" + this.ProductVersion;

            //			AssemblyDescriptionAttribute desc;
            //			AssemblyTitleAttribute title;
            AssemblyCopyrightAttribute copyright;

            Assembly assembly = Assembly.GetExecutingAssembly();
            copyright =
                (AssemblyCopyrightAttribute)
                AssemblyCopyrightAttribute.GetCustomAttribute(assembly, typeof (AssemblyCopyrightAttribute));

            //			description = ( AssemblyDescriptionAttribute)AssemblyDescriptionAttribute.GetCustomAttribute( aAssembly, typeof( AssemblyDescriptionAttribute ) );
            //			title       = ( AssemblyTitleAttribute)AssemblyTitleAttribute.GetCustomAttribute( assembly, typeof( AssemblyTitleAttribute ) );

            this.lCopyright.Text = copyright.Copyright;
        }

        private void openLink(object sender, LinkLabelLinkClickedEventArgs e)
        {
            try
            {
                System.Diagnostics.Process.Start(((LinkLabel)sender).Text);
            }
            catch
            { }
        }
    }
}
